using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Drop : MonoBehaviour
{
    public float min_speed;
    public float max_speed;
    public float speed;
    void Start()
    {
        speed = Random.Range(min_speed, max_speed);
    }

    void Update()
    {
        transform.position -= new Vector3(0, speed, 0) * Time.deltaTime;
        if(transform.position.y < -4f )
        {
            Destroy(this.gameObject);
        }
    }
}
